package com.googlecode.jyoutubeuploader.uploader;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import com.google.gdata.data.media.MediaFileSource;

public class ThrottledMediaFileSource extends MediaFileSource {

	private final ThrottledFileInputStream fileInputStream;
	
	public ThrottledMediaFileSource(File mediaFile, String mediaType, ThrottledFileInputStream inputStream) {
		super(mediaFile, mediaType);
		this.fileInputStream = inputStream;
	}

	@Override
	public InputStream getInputStream() throws IOException {
		return fileInputStream;
	}
}
